package com.wentao.thisService.mapper;

import com.wentao.thisService.model.ContractEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ContractDao {

    public List<ContractEntity> Search(ContractEntity entity);

    public List<ContractEntity> SearchPage(@Param("entityItem") ContractEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void Update(@Param("entityItem") ContractEntity entity, @Param("valueItem") ContractEntity val);

    public void Insert(ContractEntity entity);

    public List<ContractEntity> SearchAut(ContractEntity entity);

    public List<ContractEntity> SearchPageAut(@Param("entityItem") ContractEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void UpdateAut(@Param("entityItem") ContractEntity entity, @Param("valueItem") ContractEntity val);

    public IntResultEntity Count(ContractEntity entity);

    public IntResultEntity CountAut(ContractEntity entity);

    List<ContractEntity> SearchContractSignedCompanyCustomId();
}